#include <iostream>
#include <sys/socket.h>
#include <netinet/in.h>
#include<string>
#include <arpa/inet.h>
int main()
{
    // std::string strip = "128.2.194.242";
    uint32_t _ip = 0x8002c2f2;
    struct in_addr ip;
    ip.s_addr = _ip;
    char * x =  inet_ntoa(ip);
    printf("点分十进制：%s\n",x);
    // int x = inet_aton(strip.c_str(),&ip);
    // printf("十六进制数：0x%x\n",ip.s_addr);
    return 0;
}